package com.foton.servletdemo.servlet;

import java.util.Random;

/**
 * @Author RenPu
 * @Date 2023/3/15 17:20
 * @Version 1.0
 * @Description:
 **/
public class DoSomething {


    public void run(){
        Random random = new Random();
        int time = random.nextInt(5000);
        System.out.println("开始运行线程："+Thread.currentThread().getName());
        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }



}
